@REM --- get info: pfi disk1.pfi -l 
@REM --- get info: pfi disk1.pfi -p analyse
@REM 500000 for low-dencity MFM
@REM --- You can convert to PRI in two steps or one. having a PFI may be useful?
@REM pfi track00.0.raw disk1.pfi
@REM pfi disk1.pfi -R 2 -r 500000 -p decode pri disk1.pri
@REM --- or
@REM pfi track00.0.raw -R 2 -r 500000 -p decode pri disk1.pri
@REM on PRI.EXE, use -h 0 for single sided

if EXIST track00.0.raw goto OK1
ECHO Error: Run this from within the stream file directory
goto END

:OK1
pfi track00.0.raw disk1.pfi 
pfi disk1.pfi -R 1 -r 1000000 -p decode pri disk1.pri
pri disk1.pri  -p decode mfm disk1.psi -f -v
psi disk1.psi disk1.td0
psi disk1.psi -L > disk1.txt

erase disk1.pfi
erase disk1.pri

@ECHO *** DONE ***
@REM --- Convert to raw image: psi disk1.psi disk1.img
@REM --- Get info: psi disk1.psi -L 

:END